<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html>
<head>
    <title>${task.name}</title>
    <meta name="menu" content="queuedTasks"/>
    <script type="text/javascript">
        function submitForm() {
            $('#inputForm').submit()
        }
    </script>
</head>
<body>
<div class="jquery_tab">
    <div class="content_block">
        <h2 class="jquery_tab_title">${task.name}</h2>

        <form id="inputForm" action="terminal!completeTask.action" method="post">
            <%@include file="terminalCommonForm.jsp" %>

            <p>
                <label for="expectTime">预计完成时间：</label>
                <input class="input-small" type="text" name="expectTime" id="expectTime"
                       value="<s:date name='expectTime' format="yyyy-MM-dd"/>" readonly="true">
            </p>
            <%@include file="/WEB-INF/content/workflow/comment.jsp" %>
            <p>
                <c:if test="${!readonly}">
                <a class="button" href="javascript:submitForm();"><span>任务已完成</span></a>
                </c:if>
                <a class="button" onclick="javascript:history.back()"><span>返回</span></a>
            </p>
        </form>
    </div>
</div>
<div class="jquery_tab">
    <%@include file="/WEB-INF/content/workflow/ProcessImage.jsp" %>
</div>

</body>
</html>
